package com.mew.sas.controller;

import com.mew.common.rest.sas.PlayGameSasRequest;
import com.zebra.common.concurrent.ZebraExecutorManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 *  玩游戏 统计
 */
@RestController
@Slf4j
public class PlaySasController {


    @PostMapping(value = "/play/game")
    @ResponseBody
    public Integer playSlots(@RequestBody PlayGameSasRequest request){
        ZebraExecutorManager.getInstance().getDefaultExecutor().execute(() ->{
            //TODO 处理--登录-- 统计代码
            log.info("Play Slots SAS {}", request.toString());
        });
        return 1;
    }


}
